{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "%matplotlib inline\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style>body {\n",
       "    margin: 0;\n",
       "    font-family: Helvetica;\n",
       "}\n",
       "table.dataframe {\n",
       "    border-collapse: collapse;\n",
       "    border: none;\n",
       "}\n",
       "table.dataframe tr {\n",
       "    border: none;\n",
       "}\n",
       "table.dataframe td, table.dataframe th {\n",
       "    margin: 0;\n",
       "    border: 1px solid white;\n",
       "    padding-left: 0.25em;\n",
       "    padding-right: 0.25em;\n",
       "}\n",
       "table.dataframe th:not(:empty) {\n",
       "    background-color: #fec;\n",
       "    text-align: left;\n",
       "    font-weight: normal;\n",
       "}\n",
       "table.dataframe tr:nth-child(2) th:empty {\n",
       "    border-left: none;\n",
       "    border-right: 1px dashed #888;\n",
       "}\n",
       "table.dataframe td {\n",
       "    border: 2px solid #ccf;\n",
       "    background-color: #f4f4ff;\n",
       "}\n",
       "h3 {\n",
       "    color: white;\n",
       "    background-color: black;\n",
       "    padding: 0.5em;\n",
       "}\n",
       "</style>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from IPython.core.display import HTML\n",
    "css = open('style-table.css').read() + open('style-notebook.css').read()\n",
    "HTML('<style>{}</style>'.format(css))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>year</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>character</th>\n",
       "      <th>n</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Suuri illusioni</td>\n",
       "      <td>1985</td>\n",
       "      <td>Homo $</td>\n",
       "      <td>actor</td>\n",
       "      <td>Guests</td>\n",
       "      <td>22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Gangsta Rap: The Glockumentary</td>\n",
       "      <td>2007</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Himself</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Menace II Society</td>\n",
       "      <td>1993</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Lew-Loc</td>\n",
       "      <td>27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Porndogs: The Adventures of Sadie</td>\n",
       "      <td>2009</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Bosco</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Stop Pepper Palmer</td>\n",
       "      <td>2014</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Himself</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                               title  year       name   type character   n\n",
       "0                    Suuri illusioni  1985     Homo $  actor    Guests  22\n",
       "1     Gangsta Rap: The Glockumentary  2007  Too $hort  actor   Himself NaN\n",
       "2                  Menace II Society  1993  Too $hort  actor   Lew-Loc  27\n",
       "3  Porndogs: The Adventures of Sadie  2009  Too $hort  actor     Bosco   3\n",
       "4                 Stop Pepper Palmer  2014  Too $hort  actor   Himself NaN"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "cast = pd.read_csv('data/cast.csv')\n",
    "cast.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>year</th>\n",
       "      <th>country</th>\n",
       "      <th>date</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>#73, Shaanthi Nivaasa</td>\n",
       "      <td>2007</td>\n",
       "      <td>India</td>\n",
       "      <td>2007-06-15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>#Beings</td>\n",
       "      <td>2015</td>\n",
       "      <td>Romania</td>\n",
       "      <td>2015-01-29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>#Ewankosau saranghaeyo</td>\n",
       "      <td>2015</td>\n",
       "      <td>Philippines</td>\n",
       "      <td>2015-01-21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>#Nerealnaya lyubov</td>\n",
       "      <td>2014</td>\n",
       "      <td>Russia</td>\n",
       "      <td>2014-02-13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>#Stuck</td>\n",
       "      <td>2014</td>\n",
       "      <td>Turkey</td>\n",
       "      <td>2014-07-01</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                    title  year      country       date\n",
       "0   #73, Shaanthi Nivaasa  2007        India 2007-06-15\n",
       "1                 #Beings  2015      Romania 2015-01-29\n",
       "2  #Ewankosau saranghaeyo  2015  Philippines 2015-01-21\n",
       "3      #Nerealnaya lyubov  2014       Russia 2014-02-13\n",
       "4                  #Stuck  2014       Turkey 2014-07-01"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "release_dates = pd.read_csv('data/release_dates.csv', \n",
    "                                      parse_dates=['date'], infer_datetime_format=True)\n",
    "release_dates.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7fad7bc9f400>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAEBCAYAAABc9Z89AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFNJJREFUeJzt3X+MZXd93vH3Yy+/DMQLgqy3QLJV1EDbEC2ERjQIZSCQ\nbqrINUla1U0UG0hUqSq4qIlwm0q4QSo2LTRRqqaqsPGSKERRUAgGEezQncSWFfMjO876V9xKrGq3\neIHYBgyNAuHTP+4Z79xh7p3ZmXPmnjvf90u68j3n3Hue8z1z9zt3njlznapCkjR+Fy36ACRJO+OE\nLUlLwglbkpaEE7YkLQknbElaEk7YkrQk5k7YSZ6e5K4ka0nuS/Kubv11SR5Ocrq7ndifw5WkdmW7\n67CTXFJVX09yCLgD+AXgR4CvVtV79+EYJUnsoBKpqq93d58KXAw81i1nqIOSJH27bSfsJBclWQPO\nAaeq6t5u01uS3J3kxiSHBz1KSdL2lciTD0wuBT4BXAvcB3yx2/RO4GhVvXmQI5QkAXBopw+sqi8n\n+RjwiqpaXV+f5H3ALZsfn8QPKZGkXaiqrSv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Xd+5D9fcBLmFRdDwyd12XeBtwGnKyqc926y5i8w359Vb1uwOx7gTdU1YNb\nbHtoqH9bSe4H/m73U9z6uquBX2RSuX53r3mLnrAF3Tv7H6qqf7voY5F2q6vbrgUuB450q88x+X3N\n9VX16IDZ/5jJ7wa+7ZtTkiuq6sMD5f5H4Naqum3T+hPAr1XV3+o1zwlb0tCSvLGqhr4iaFb2+u9P\nlj7XCVvS4IasJcaaPUTuGH7pKOkA2OaKryNzti1t9n7nOmFL6suirvhaZPa+5jphS+rLx5hcGXF6\n84YkQ1+yuqjsfc21w5akJTHqzxKRJJ3nhC1JS8IJW5KWhBO2JC0JJ2xJWhL/H6/HaLvWlYLDAAAA\nAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fad7ccf49b0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Make a bar plot of the months in which movies\n",
    "# with \"Christmas\" in their title tend to be released in the USA.\n",
    "\n",
    "rd = release_dates\n",
    "rd = rd[rd.title.str.contains('Christmas')]\n",
    "rd = rd[rd.country == 'USA']\n",
    "rd.date.dt.month.value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7fad7ca8f6d8>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW8AAAEBCAYAAAC3wiQ+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAADpBJREFUeJzt3X+o3fV9x/HXy1yLA0dFZGFNbgnMCBUKC4yY2TLP6Arx\nQuM/wnSMEveHIgSH7A+HCN2gpfuzc6LLH2rSFQxSqaiNlFI8acsg3TQ3tRpH8seFJGKE6RVrGDPt\nu3+c701OT87Pm8/J9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AmU0K7y2STvetz1TPTdqz9cpHAwCMMim8\np72dYfAvodwGgURW6h4AmNnChOtnJS32rRfVO1mP27O1eu4yvdvbUA53Y5VzsO4BWoWf9fmbFN7/\nLWm77W2S3pX015LuHdjzkqR9kg7Z3iVpNSLODb4Q930CQDljwzsiLtjeJ+lHkjZJejoiTth+oLq+\nPyIO216yfUrSJ5Lum/vUALDBXbV3WAIAyuEdlgCQEOENAAkR3tgwbH/W9r/Y/p7tvxm49mRdcwHr\nQXhjI3m2+ucL6n3Uwwu2r6ue+/OaZgLWhfDGRvInEfGPEfGDiPiapDck/cT2TXUPBsxq0n3eQJt8\nxvY1EfFbSYqIb9k+K+mIpOvrHQ2YDSdvbCSvSPpK/xMRcUDSP0j6/zoGAtaL+7wBSbb/LiKeqXsO\nYFqENyDJ9umIWJy8E2gGOm9sGLbfHHOZz6BHKoQ3NpI/Uu//CvXhkGv/eZVnAa4I4Y2N5IeSro+I\nY4MXbB+pYR5g3ei8ASAhbhUEgIQIbwBIiPAGgIQIbwBIiPAGgIR+By6XC/HCLf2UAAAAAElFTkSu\nQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fad7ca8b9b0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Make a bar plot of the months in which movies\n",
    "# whose titles start with \"The Hobbit\" are released in the USA.\n",
    "\n",
    "rd = release_dates\n",
    "rd = rd[rd.title.str.startswith('The Hobbit')]\n",
    "rd = rd[rd.country == 'USA']\n",
    "rd.date.dt.month.value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7fad7ca57198>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD7CAYAAABOi672AAAAB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Yzpfo+8YXpsacAzb\nd2l0Gu3qswaukPRVSRERV6UEm9Dq14jtr0t6a0Q8avs5Gu3/b+Ym3JjtByLiVc3l/4iIS1bddiQi\nfmvRmWqoRH6uURWysub6lzS39Zrtoy03v3hhQabnMzVIRKw0lcI/2f5V/fIQ6aufRsRTkp6y/V9n\nvo2NiB/bfjo52yReJum4pM9KelqjPb9Uo+8aanCu7Qs1yn1uRDwqSRHxI9tP5UYb65jtd0XErZKO\n2P6diPh3278h6acZgWoY2B+U9GXb39HZn668WNKvS3pfWqrJvVijz1x5bJ3b7l9wlml8z/buiFiW\npOad9h9I2qfRO9e++z/bF0TEkxr1j5Ik29s1GoB9d6mkD0j6M0kfiYjDtn8SEf+anGtSz5f0jeZy\n2N4ZEd+1/bzMUBN6j6RP2/5zSY9Kut/2CY3m0HsyAvW+EpF+8WFTr9fonXZI+m9JX2/eOfWa7Vsl\nfS4i7l3nttsj4pqEWBOzfbGkn0XEyTXXW9JlEXFfTrLJ2H52RPxknetfJGlnRLR9B9Qbtl8m6W8k\nfU/SVX2v0sZp/hFvR0Q8nJ1lHNsvkPRyjd7gnlj7d2GhWWoY2ABGmu9ufjci/jQ7CxaPgQ0Alej9\naX0AgBEGNgBUgoENAJVgYANAJf4fnI1rJqK1iGkAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fad7ca5f8d0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Make a bar plot of the day of the week on which movies\n",
    "# with \"Romance\" in their title tend to be released in the USA.\n",
    "\n",
    "rd = release_dates\n",
    "rd = rd[rd.title.str.contains('Romance')]\n",
    "rd = rd[rd.country == 'USA']\n",
    "rd.date.dt.dayofweek.value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7fad7c9ba518>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD7CAYAAABOi672AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAE1hJREFUeJzt3WusZWV9x/HfT6ZW8K6NVAvp0VasRuioaEiVelRIxsai\n75pJq45GXzTFW1sqamN95YXaqrHpi6rDQNTpRQ2RxFhRWQRDi7cZHGCo2njSQetAlaHBG+D8+2Kv\nKWuO5+yzznr2Pv/17PP9JCfsZ6291/qdh8PDPr9Ze40jQgCA8XtQdgAAQD8s2ABQCRZsAKgECzYA\nVIIFGwAqwYINAJWYumDb3mv7qO1Dq7a/zvZh2zfbfs98IwIApI3fYV8uaVd3g+0XSLpI0jkR8XRJ\n751TNgBAx9QFOyKul3TXqs1/LOldEXFf+5w755QNANAxpMN+sqTftf3vthvb5846FADgF+0Y+JpH\nR8R5tp8t6Z8lPWn1k2zzmXcAGCAivNb2IQv27ZI+1R70K7aP235sRPyg70lnwfY7IuId8zr+vJE/\nV835a84ukb/H8dd9szukErlK0gvbA58l6cFrLdYAgNma+g7b9n5Jz5f0WNtHJL1d0l5Je9tL/e6V\n9Iq5p1zbUtJ5Z2UpO0ChpewAhZayAxRYyg5QaCk7QKGlrBNPXbAjYvc6u14+hyybdTA7QCHy56o5\nf83ZJfIP5nndD9t2zLPDBoBFNG3t5KPpAFCJahds28vZGUqQP1fN+WvOLpG/RLULNgBsN3TYADAi\ndNgAsACqXbDpwXKRP0/N2SXyl6h2wQaA7YYOGwBGZNraOeTmTwBmaCvubMmbp8VQbSVCD5aL/LMW\nm/i6dpPPH5fxzf3m0GEDADZEhw0km1Qi83wnbCqRinAdNgAsgGoXbHqwXOTP1GQHKFL33NNhAwB6\noMMGktFho4sOGwAWQLULNj1YLvJnarIDFKl77kfcYdvea/to+xfurt73Z7aP237M/OIBAE6Y2mHb\nPl/SPZKujIizO9vPlPQ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kiPiR7ftzo/Vyi+1XR8ReSTfZfnZEfMX2WZLu\nzQhUw4L9Rkmft/1tPfDpyjMlPVnSxWmp+nucJvdcuWuNfTdscZYh7rC9MyIOSlL7Tvslkj6iyTvX\nsfuZ7dMi4sea9I+SJNuP0mQRHLNzJb1B0tskXRIRB2z/NCKuS87V1yMkfa19HLYfHxH/bfvhmaE2\n4TWSPmD7LyXdKekG27drsg69JiPQ6CsR6f9vNvUcTd5ph6TvSvpq+85p1GzvlXR5RFy/xr79EbE7\nIVZvts+UdF9EfH/Vdkt6bkR8KSdZP7YfEhE/XWP7r0h6fERM+w1oFGyfIel9ku6QdNHYa7SNtH+A\nd3pEfCc7Sx+2HynpiZq8wb199X8LW5qlhgUbgNT+ZvM7EfHW7CzIwYINAJUY/WV9AIAJFmwAqAQL\nNgBUggUbACrxf50vriSqgvopAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fad7c9c4908>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Make a bar plot of the day of the week on which movies\n",
    "# with \"Action\" in their title tend to be released in the USA.\n",
    "\n",
    "rd = release_dates\n",
    "rd = rd[rd.title.str.contains('Action')]\n",
    "rd = rd[rd.country == 'USA']\n",
    "rd.date.dt.dayofweek.value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>year</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>character</th>\n",
       "      <th>n</th>\n",
       "      <th>country</th>\n",
       "      <th>date</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GoldenEye</td>\n",
       "      <td>1995</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>M</td>\n",
       "      <td>6</td>\n",
       "      <td>USA</td>\n",
       "      <td>1995-11-17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Jack &amp; Sarah</td>\n",
       "      <td>1995</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>Margaret</td>\n",
       "      <td>3</td>\n",
       "      <td>USA</td>\n",
       "      <td>1996-03-22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Hamlet</td>\n",
       "      <td>1996</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>Hecuba</td>\n",
       "      <td>12</td>\n",
       "      <td>USA</td>\n",
       "      <td>1996-12-25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Mrs Brown</td>\n",
       "      <td>1997</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>Queen Victoria</td>\n",
       "      <td>1</td>\n",
       "      <td>USA</td>\n",
       "      <td>1997-07-18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Tomorrow Never Dies</td>\n",
       "      <td>1997</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>M</td>\n",
       "      <td>9</td>\n",
       "      <td>USA</td>\n",
       "      <td>1997-12-19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Shakespeare in Love</td>\n",
       "      <td>1998</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>Queen Elizabeth</td>\n",
       "      <td>12</td>\n",
       "      <td>USA</td>\n",
       "      <td>1999-01-08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Tea with Mussolini</td>\n",
       "      <td>1999</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>Arabella</td>\n",
       "      <td>2</td>\n",
       "      <td>USA</td>\n",
       "      <td>1999-05-14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>The World Is Not Enough</td>\n",
       "      <td>1999</td>\n",
       "      <td>Judi Dench</td>\n",
       "      <td>actress</td>\n",
       "      <td>M</td>\n",
       "      <td>6</td>\n",
       "      <td>USA</td>\n",
       "      <td>1999-11-19</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     title  year        name     type        character   n  \\\n",
       "0                GoldenEye  1995  Judi Dench  actress                M   6   \n",
       "2             Jack & Sarah  1995  Judi Dench  actress         Margaret   3   \n",
       "1                   Hamlet  1996  Judi Dench  actress           Hecuba  12   \n",
       "3                Mrs Brown  1997  Judi Dench  actress   Queen Victoria   1   \n",
       "7      Tomorrow Never Dies  1997  Judi Dench  actress                M   9   \n",
       "4      Shakespeare in Love  1998  Judi Dench  actress  Queen Elizabeth  12   \n",
       "5       Tea with Mussolini  1999  Judi Dench  actress         Arabella   2   \n",
       "6  The World Is Not Enough  1999  Judi Dench  actress                M   6   \n",
       "\n",
       "  country       date  \n",
       "0     USA 1995-11-17  \n",
       "2     USA 1996-03-22  \n",
       "1     USA 1996-12-25  \n",
       "3     USA 1997-07-18  \n",
       "7     USA 1997-12-19  \n",
       "4     USA 1999-01-08  \n",
       "5     USA 1999-05-14  \n",
       "6     USA 1999-11-19  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# On which date was each Judi Dench movie from the 1990s released in the USA?\n",
    "\n",
    "usa = release_dates[release_dates.country == 'USA']\n",
    "\n",
    "c = cast\n",
    "c = c[c.name == 'Judi Dench']\n",
    "c = c[c.year // 10 * 10 == 1990]\n",
    "c.merge(usa).sort_values('date')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7fad7babf710>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAEBCAYAAABc9Z89AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFLFJREFUeJzt3X+s5Xld3/Hnmx0VFmSJsSIpxDGkWjXaxaChWOpQkGyN\npa3WxK1GFoJ/qYBBA9amJf2jYq0pxto/Ku6ORLQJ+HPxR6Fkv/7I2gK6gwssriW9KVvrQrALBYvs\nZt/94/O93jPjnXvvnHvP+b7O7PORTPZ8z/fO9/uc7z37me99z7kz1d1IkvI9bukASdLJuGBL0o5w\nwZakHeGCLUk7wgVbknaEC7Yk7YgjF+yqur2qHqyqe1ee+7yqekdV3V9Vb6+qp2w+U5J03B32HcAt\nVzz3WuAd3f0lwDvnbUnShtVx3zhTVeeBO7v7K+ftDwJf390PVtUXAlN3/81Nh0rSY906M+yndveD\n8+MHgaeeYY8k6SpO9YeOPW7P/d52SdqCc2v8nAer6gu7+0+r6mnARw77oKpyIZekNXR3XW3HkT+A\n88C9K9v/BnjN/Pi1wOuv8vP6uGOf4NyvO+0xroeGlI6EhpSOhIaUjm00AA19zI9/ecx+eheuxVGd\nx72t7+eBu4EvraoPV9VLgdcD31BV9wN/b97elPMbPPZJnV86YHZ+6QAyGiCj4/zSAbPzSweQ0QDs\nLR0AG74WR45EuvvWq+x64QZaJElHSP9Ox4tLB5DRABkdF5cOmF1cOoCMBsjouLh0wHDb0gGw4Wtx\n7Puw1z5wVffVBueSdA3GmxhOu1YVu7AmHbV2Rt9hV9UFG4aEjoQGyOhIaICMjoSGYVo6YOPXInrB\nliQ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QnvKlukwQVb0q75NcY7Me65ckdVbeutp4s0OMOWpB3hX/4kSTvCBVuSdoQLtiTt\nCBdsSdoRLtiStCP+Pyx8Seu0sW9cAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fad7c616cc0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# In which months do films with Judi Dench tend to be released in the USA?\n",
    "\n",
    "c = cast\n",
    "c = c[c.name == 'Judi Dench']\n",
    "m = c.merge(usa).sort_values('date')\n",
    "m.date.dt.month.value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7fad7ca2da20>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWYAAAEBCAYAAABL1w/0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGXlJREFUeJzt3X+MbGddx/H3l1764xYowQYoFr21EeRnf1BIRcCtFNIi\nFERNaDBwS8ofAgIKhFaMgn8IBAkQhRiB9oIWjFQKlh9SwD4FUgNU7i2FFtCGFRAoDfUWpBZa+/WP\nc8aZWXbnzO7MOc9n735eSXP37Eyf874zs8+d/e7sbmQmZmam4261A8zMbJo3ZjMzMd6YzczEeGM2\nMxPjjdnMTIw3ZjMzMZ0bc0S8JCKui4gvRcRLhogyM9vJZm7MEfFw4Hzg0cBJwFMj4sQhwszMdqqu\nZ8y/BHw2M2/PzP8FrgKe2X+WmdnO1bUxfwl4fETcJyJ2A78OHN9/lpnZzrVr1oWZ+ZWIeD1wBfAj\nYD9w1xBhZmY7VWzmZ2VExJ8B38jMv5p4n3/YhpnZFmRmbHTBzP+A+7Z//hxwA3CvNZdn1xpznOPV\ni66xjP8UOhQ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AAAElFTkSu\nQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7fad7c5a3f28>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# In which months do films with Tom Cruise tend to be released in the USA?\n",
    "\n",
    "c = cast\n",
    "c = c[c.name == 'Tom Cruise']\n",
    "m = c.merge(usa).sort_values('date')\n",
    "m.date.dt.month.value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.4.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
